<template>
  <div class="Equipmentstats">
    <div class="equiStats">
      <div class="title" style="color: aliceblue;">
        设备综合利用率(OEE)
      </div>
      <div class="stats">
        <PieCharts :chartData="pieData"></PieCharts>
      </div>
    </div>
    <div class="uptime">
      <div class="title" style="color: aliceblue;">
        设备综合利用率趋势图(OEE)
      </div>
      <div class="time">
        <LineCharts :chartData="lineData"></LineCharts>
      </div>
    </div>
    <div class="alarmList">
      <div class="title" style="color: aliceblue;">
        报警列表
      </div>
      <div class="alarm_item">
        <div class="alarm_title" style="color: red;background-color: #49374b;">
          数控机床001号
        </div>
        <div class="alarm_conent" style="color: aliceblue;">报警内容</div>
      </div>
    </div>
  </div>
</template>

<script>
import PieCharts from "../piechart.vue";
import LineCharts from "../linechart.vue";
export default {
  components: {
    PieCharts,
    LineCharts,
  },
  data() {
    return {
      pieData: [
        { value: "10", name: "运行" },
        { value: "20", name: "待机" },
        { value: "30", name: "报警" },
        {
          value: "40",
          name: "离线",
        },
      ],
      lineData: [],
    };
  },
};
</script>

<style lang="less">
@import "./style.less";
</style>
